package com.itheima.d2_buffered_stream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.Writer;

public class BufferWriterTest2 {
    public static void main(String[] args) {
        try (
                Writer fw = new FileWriter("Day18-io-app\\src\\itheima04.txt",true);
                BufferedWriter bw = new BufferedWriter(fw);

        ) {
            bw.write('a');
            bw.write(97);
            bw.write('斌');
            bw.newLine();


            bw.write("谢睿妍小傻蛋22");
            bw.newLine();

        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
